package com.jake.springboot.order.service;

import com.jake.springboot.order.dto.OrderDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class CancelOrderService {

    public void process(OrderDTO orderDTO) {
        Integer serviceType = orderDTO.getServiceType();
        String typeName = "";
        if (1 == serviceType) {
            typeName = "即时";
        }
        if (2 == serviceType) {
            typeName = "预约";
        }
        if (3 == serviceType) {
            typeName = "拼车";
        }
        log.info("取消{}订单", typeName);
    }

}
